import static net.mindview.util.Print.*;

class Soap {
    private String s;
    Soap() {
        print("Soap()");
        s = "Constructed";
    }
    public String toString() {return s;}    //
}

public class engineer {
    private String  //
        s1 = "Happy",
        s2 = "Happy",
        s3,s4;      //定义时初始化
    private Soap castille;
    private int i;
    private float toy;
    public engineer() {
        print("Inside Bath()");
        s3 = "Joy";
        toy = 3.14f;
        castille = new Soap();  //构造器初始化
    }

    { i = 47; } //实例初始化（同时还有静态实例初始化static { i= 47; }）

    public String toString() {
        if (s4 == null)
            s4 = "Joy"; //惰性初始化
        return
            "完成";
    }
    public static void main(String[] args) {
        engineer b = new engineer();
        print(b);
    }
}